﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Surveillance
{
    public class Wall
    {
        #region Declerations

        private Texture2D wallTexture;
        private Vector2 worldPosition;
        private Rectangle targetRectangle;
       
        #endregion

        #region Constructors

         public Wall(ContentManager content, Vector2 position, int width, int height)
        {
            wallTexture = content.Load<Texture2D>(@"Textures\wall");
            worldPosition = position;
            targetRectangle = new Rectangle((int)position.X, (int)position.Y, width, height);
        }

        #endregion

        #region Update and Draw

         public void Draw(SpriteBatch spriteBatch)
         {
             spriteBatch.Draw(
               wallTexture,
               targetRectangle,
               null,
               Color.White,
               0.0f,
               Vector2.Zero,
               SpriteEffects.None,
               1.0f);
         }
        
        #endregion

        #region Properties

         public Rectangle TargetRectangle
         {
             get { return targetRectangle; }
             set { targetRectangle = value; }
         }

         public Vector2 WorldPosition
         {
             get { return worldPosition; }
             set { worldPosition = value; }
         }

        #endregion

    }
}
